//
//  UploadFirstViewController.m
//  LoveAttention
//
//  Created by 于金祥 on 16/6/2.
//  Copyright © 2016年 JC. All rights reserved.
//

#import "UploadFirstViewController.h"
#import "UploadSecondViewController.h"

@interface UploadFirstViewController ()

@end

@implementation UploadFirstViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self p_navigationController];
    self.startNow.layer.masksToBounds=YES;
    self.startNow.layer.cornerRadius=5;
    [self.startNow addTarget:self action:@selector(NextStep:) forControlEvents:UIControlEventTouchUpInside];
}

#pragma mark - navigationController
- (void)p_navigationController
{
    self.view.backgroundColor = [UIColor groupTableViewBackgroundColor];
    
    self.navigationItem.title = @"开店流程";
    
//    self.navigationItem.leftBarButtonItem
    
    
    UIButton * btn = [UIButton buttonWithType:(UIButtonTypeSystem)];
    [btn setBackgroundImage:[UIImage imageNamed:@""] forState:(UIControlStateNormal)];
    btn.frame = CGRectMake(10, 20, 25, 30);
    [btn addTarget:self action:@selector(leftBarButtonItemAction:) forControlEvents:(UIControlEventTouchUpInside)];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:btn];
    
//    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"注册" style:(UIBarButtonItemStyleDone) target:self action:@selector(rightBarButtonItemAction:)];
    self.navigationItem.leftBarButtonItem.tintColor = [UIColor blackColor];
//    self.navigationItem.rightBarButtonItem.tintColor = [UIColor whiteColor];
}
//点击事件(左)
- (void)leftBarButtonItemAction:(UIBarButtonItem *)bar
{
//    [self.navigationController popViewControllerAnimated:YES];
}

-(void)NextStep:(UIButton *)sender
{
    UploadSecondViewController * uploadsecond=[[UploadSecondViewController alloc] init];
    [self showViewController:uploadsecond sender:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
